<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>气度网 - 气度如水</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/school_sub.css" >
</head>

<body>
<div class="container">
	<!-- 头部 -->
	<%@ include file="header.jsp"%>
    <div class="clear"></div>
    <div id="banner"></div>
    <div class="divide">
    	<div class="index_menu">
        	<a href="${ctx}/school/index" title="校园首页"><div class="school_btn">校园首页</div></a>
            <a href="${ctx}/school/listByType?typeCode=SH001004" title="校园信息"><div class="menu_btn">校园信息</div></a>
            <a href="${ctx}/school/listByType?typeCode=CM001002" title="企业需求"><div class="menu_btn">企业需求</div></a>
            <a href="${ctx}/school/listByType?typeCode=SH001006" title="学校需求"><div class="menu_btn">学校需求</div></a>
            <a href="${ctx}/school/listByType?typeCode=SH001005" title="科技前沿"><div class="menu_btn">科技前沿</div></a>
            <a href="${ctx}/school/listColleage?typeCode=all&pageNum=1&pageSize=10&orderBy=create_date&asc=desc" title="合作院校"><div class="menu_btn">合作院校</div></a>
            <a href="${ctx}/school/listByType?typeCode=#" title="留言板"><div class="menu_btn">留言板</div></a>
        </div>
        <div class="clear" ></div>
    </div>
    <div class="clear"></div>
    
    <!-- 主要内容 -->
    <div class="body">
    	<!-- 左边 -->
		<div class="part_1">
        	<div class="title">校园信息</div>
            <div class="info">
            	<li class="ctrl_bar">
                	<div class="ctrl">单页显示
                        	<select>
                            	<option>10条</option>
                                <option>20条</option>
                                <option>50条</option>
                            </select>
                    </div>
                    <div class="ctrl">按
                        	<select>
                            	<option>修改时间</option>
                                <option>发布时间</option>
                                <option>人气</option>
                            </select>
                    		排列
                    </div>
                </li>
                <s:iterator value="newsList.objList" var="news" status="count">
                <li>
                	<div class="name">
                		<a href="${ctx}/school/viewInfo?id=<s:property value="#news.id"/>">
                		<s:property value="#count.index + 1"/>、
                		<s:if test="#news.title.length() > 30">
                			<s:property value="#news.title.substring(0,30) + '...' " />
                		</s:if>
                		<s:else><s:property value="#news.title"/></s:else>
                		(发布人:<s:property value="#news.creator"/>)
                		</a>
                	</div>
                	<div class="public_date"><s:property value="#news.createDate" /></div>
                </li>                 
                </s:iterator>
  				<li style="text-align:center;">
					<p><s:property value="%{newsList.pagebar}"  escape="false" /></p>
  				</li>                 
            </div>
		</div>
        <!-- 右边 -->
        <div class="part_2">
        	<!-- 排行榜 -->
        	<div class="rank">
            	<div class="title"></div>
                <div class="info">
                <s:iterator value="rankNews.objList" var="news">     
                	<a href="${ctx}/school/viewInfo?id=<s:property value="#news.id"/>" title="<s:property value="#news.title" />">
                		<div class="name">
						<s:if test="#news.title.length() > 12 "><s:property value="#news.title.substring(0,12) + '...' "/></s:if>
						<s:else><s:property value="#news.title" /></s:else>
						(访问<s:property value="#news.hit"/>次)
						</div>
                		<div class="public_date"><s:property value="#news.createDate" /></div>
                	</a>
                </s:iterator>
                </div>
            </div>
            <!-- 广告1 -->
            <div class="ad"><a href="#" ><img src="" alt="#"></a></div>
        </div>
	</div>
 	<div class="clear"></div>   
	<!-- 尾部 -->
     <%@ include file="tail.jsp"%>  
</div>
</body>
</html>
